/**
 * 
 */
package com.feib.stms.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.feib.stms.dao.ConfirmRuleDao;
import com.feib.stms.model.ConfirmRule;
import com.feib.stms.model.Group;
import com.feib.stms.service.ConfirmRuleService;

/**
 * @author Jeff Gu
 *
 */
@Service("confirmRuleService")
public class ConfirmRuleServiceImpl implements ConfirmRuleService {
	
	
	@Resource(name="confirmRuleDao")
	protected ConfirmRuleDao confirmRuleDao;

	
	public ConfirmRule findConfirmRuleEnabled(Group group) {
		
		return this.confirmRuleDao.getConfirmRuleEnabled(group);
	}

	
	public int saveConfirmRule(ConfirmRule ConfirmRule) {
		
		return  this.confirmRuleDao.insertConfirmRule(ConfirmRule);
	}

	
	public int disableConfirmRule(ConfirmRule confirmRule) {
		
		return this.confirmRuleDao.disableConfirmRule(confirmRule);
	}

}
